package com.qianfeng.smartdevices.mapper;

import com.qianfeng.smartdevices.pojo.Areas;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AreaMapper {
    List<Areas> findParentAreaByStatus(Long stauts);

    void addArea(Areas areas);

    List<Areas> findAllAreasByNameLikeAndStatusEquals(@Param("areaname") String areaname, @Param("status") Long status,@Param("parentid") Long parentid);

    int updateArea(Areas areas);
    int deleteAreaById(@Param("ids") List<Long> ids);

    int getAreaById(Long id);
}
